@import '~less/mixin.less';

.card {
  margin: 20px 12px 28px;
  background:linear-gradient(170.8deg,rgba(73,149,237,1),rgba(47,117,199,1));
  box-shadow:0px 3px 9px 0px rgba(58,135,224,0.54);
  border-radius:7px;
  padding: 18px;
  color: #fff;
  position: relative;

  &-header {
    position: relative;
    height: 52px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px dashed #6DA9F0;

    h1 {
      margin: 0;
      color: #fff;
      font-weight: 600;
      font-size: 17px;
      padding-left: 29px;
      background-repeat: no-repeat;
      background-position: left center;
      background-size: 23px 23px;
      line-height: 1.3;

      .text-overflow();

      &.type-house {
        background-image: url('./img/icon_house.png');
      }

      &.type-user {
        background-image: url('./img/icon_user.png');
      }

      &.type-time {
        background-image: url('./img/icon_time.png');
      }
    }
  }

  &-body {
    padding: 16px 0;

    h2 {
      margin: 0 0 20px;
      font-size: 15px;
      font-weight: normal;
      line-height: 1.15;
      color: #fff;
    }

    :global {
      .ant-col-12 {
        margin-top: 14px;

        .card-info {
          margin-top: 0;
        }

        &:nth-child(1),
        &:nth-child(2) {
          margin-top: 0;
        }
      }
    }
  }

  &-info {
    display: flex;
    align-items: center;
    margin-top: 14px;

    &:first-child {
      margin-top: 0;
    }

    &-title {
      max-width: 80px;
      font-size: 12px;
      color: #94C5FF;
      flex-shrink: 0;
      margin-right: 4px;
      .text-overflow();

      &:after {
        content: ':';
      }
    }

    &-value {
      font-size: 13px;
      color: #fff;
      position: relative;
      // top: 1px;
      .text-overflow();
    }
  }

  &-qrcode {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 35px;
    height: 35px;
    z-index: 100;
    background: url('./img/qrcode.png') no-repeat center center;
    background-size: contain;
  }

  &-seal {
    position: absolute;
    width: 114px;
    height: 114px;
    bottom: 36px;
    right: 12px;
    background-repeat: no-repeat;
    background-size: contain;
    font-variant-position: center center;
  }

  // 锁房
  &._0 {
    .card-seal {
      background-image: url('./img/seal_choice_success.png');
    }
  }
  // 锁房
  &._1 {
    .card-seal {
      background-image: url('./img/seal_subscribe_success.png');
    }
  }
}

.tip {
  padding: 0 24px;
  margin-bottom: 16px;
  font-size: 12px;
  color: #9B9B9B;
  line-height: 1.5;

  > div {
    margin-left: 26px;
  }

  &:before {
    content: '注：';
    float: left;
    width: 26px;
  }
}

.qrcode {
  text-align: center;
  padding-top: 18px;

  img {
    display: inline-block;
    vertical-align: top;
    margin-bottom: 20px;
    max-width: 223px;
    width: 100%;
  }

  p {
    text-align: center;
    font-size: 17px;
    color: #1B160C;
    margin: 0;
  }
}
